package com.lumyc.openfeignclient.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserFeign
 * @Description TODO
 * @Author lumyc
 * @Date 2022/11/16 15:53
 * @Version 1.0
 */
@FeignClient("openfeign-server")
public interface UserFeign {

    @GetMapping("/user/get/by/{id}")
    String getById(@PathVariable String id);

}
